#ifndef PATIENTINFORMATION_H
#define PATIENTINFORMATION_H

#include <QDialog>

namespace Ui {
class PatientInformation;
}
struct Information{
    QString name;
    QString sex;
    QString phone;
    QString nation;
    QString birth;
    int age;
    QString callNumber;
    QString blood;
    QString id;
    QString illness;//疾病史
    QString irritability;//药物史
};

class PatientInformation : public QDialog
{
    Q_OBJECT

public:
    //explicit PatientInformation(Information infor,QWidget *parent = nullptr);
    explicit PatientInformation(QWidget *parent = nullptr);
    void getInformation(QString &name,QString &callNumber);
    PatientInformation(QString name,QString sex,
                       QString phone,QString nation,
                       QString birth,int age,int callNumber,
                       QString blood,QString id,
                       QString illness,QString irritability,QWidget *parent = nullptr);
    void setUI(Information infor);
    ~PatientInformation();
    Ui::PatientInformation *ui;
private:

};

#endif // PATIENTINFORMATION_H
